import request from '@/utils/request'

// 查询竞赛获奖情况列表
export function listAwards(query) {
  return request({
    url: '/awards/awards/list',
    method: 'get',
    params: query
  })
}

// 查询竞赛获奖情况详细
export function getAwards(caId) {
  return request({
    url: '/awards/awards/' + caId,
    method: 'get'
  })
}

// 新增竞赛获奖情况
export function addAwards(data) {
  return request({
    url: '/awards/awards',
    method: 'post',
    data: data
  })
}

// 修改竞赛获奖情况
export function updateAwards(data) {
  return request({
    url: '/awards/awards',
    method: 'put',
    data: data
  })
}

// 删除竞赛获奖情况
export function delAwards(caId) {
  return request({
    url: '/awards/awards/' + caId,
    method: 'delete'
  })
}
